<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()	+ path + "/";
	request.setCharacterEncoding("UTF-8");
	response.setContentType("text/html;charset=UTF-8");
%>
<jsp:include page="changePwd.jsp" flush="true"/>
<script type="text/javascript">
	var ctx="<%=path%>";
	var savePicUrl = '<%=path%>/product/saveproductpic';
	function readAsDataURL(){  
	    var file = document.getElementById("file").files;
	    var result=document.getElementById("result"); 
	    result.innerHTML = "";
	    for(i = 0; i< file.length; i ++) {
	        var reader = new FileReader();    
	        reader.readAsDataURL(file[i]);  
	        reader.onload=function(e){  //多图预览
	            result.innerHTML = result.innerHTML + '<img style="height: 90px" src="' + this.result +'" alt="" />&nbsp;&nbsp;&nbsp;';  
	        }
	    }
	}
	function readupdateDataURL(){  
	    var file = document.getElementById("fileupdate").files;
	    var result=document.getElementById("resultupdate"); 
	    result.innerHTML = "";
	    for(i = 0; i< file.length; i ++) {
	        var reader = new FileReader();    
	        reader.readAsDataURL(file[i]);  
	        reader.onload=function(e){  //多图预览
	            result.innerHTML = result.innerHTML + '<img style="height: 90px" src="' + this.result +'" alt="" />&nbsp;&nbsp;&nbsp;';  
	        }
	    }
	}
	/* $(".add").click(function() {
		var result=document.getElementById("result"); 
		result.innerHTML = "";
		$("#file").val("");
	}) */
</script>
<style>
.uploadImage{
    display: inline-block;
    vertical-align: top;
    position: relative;
    width: 90px;
    height: 90px;
    background: url("img/imgadd.png") no-repeat;
    background-size: cover;
    text-align: center;
    cursor: pointer;
}
.uploadImage p{
    position: absolute;
    left:0;right:0;
    bottom: 10px;
    font-size: 14px;
    color: #999999;
}
.uploadImage input#file{
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.preview{
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin-left: 10px;
    width: 90px;
    height: 90px;
    background: #E1E6ED;
    text-align: center;
}
.preview img{
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}
.preview img[src=""]{
    opacity:0;
    filter: Alpha(0); /* 兼容IE8-9 */
}
.preview img:not([src]){
    opacity:0;
    filter: Alpha(0); /* 兼容IE8-9 */
}
.preview .word{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    line-height: 90px;
    font-size: 14px;
    color: #999999;
    z-index: 0;
}
</style>
<link rel="stylesheet" href="<%=path%>/css/glsmcx.css" type="text/css" />
<link rel="stylesheet" href="<%=path%>/css/upload.css" type="text/css" >
<script type="text/javascript" src="<%=path%>/js/controllers/spglCtrl.js"></script>
<input type="hidden" id="isInterior" value="${_user_supplier.isInterior}" />
<div class="glsmcxWrap">
	<div class="container-fluid">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">商品管理</h3>
			</div>
			<input id="queryType" value="ht" style="display:none;"></input>
			<div class="panel-body clearfix">
				<form method="post" action="#" class="form-horizontal" role="form">
					<!-- 查询开始 -->
					<div class="form-group">
						<div class="col-lg-31 clearfix">							
						<label class="control-label labelPart">商品名称：</label>
							<div class="colPart">
								<input type="text" class="input-sm form-control" id="productName" placeholder="商品名称">
							</div>
						</div>				
						<div class="col-lg-31 clearfix">							
							<label class="control-label labelPart">上架状态：</label>							
							<div class="colPart">
								<select name="shelveState">
									<option value="">请选择</option>
									<option value="1">上架</option>
									<option value="2">下架</option>
								</select>
							</div> 						
						</div>
						<div class="col-lg-31 clearfix">							
							<label class="control-label labelPart">审核状态：</label>							
							<div class="colPart">
								<select name="auditState">
									<option value="">请选择</option>
									<option value="1">待审核</option>
									<option value="2">审核通过</option>
									<option value="3">不通过</option>
								</select>
							</div> 						
						</div>
						<div class="col-lg-34 more clearfix">
							<div class="morePart"><span>更多筛选</span>&nbsp;</div>														
							<button type="button" class="searchBtn">查询</button>	
							<button type="button" class="clearBtn">清空</button>					
						</div>
					</div>
					<div class="form-group distant"> 
						<div class="col-lg-31 clearfix">							
							<label class="control-label labelPart">贸易类型：</label>	
							<!-- 贸易类型，1保税直供，2国内发货，3海外直邮，4海外交货 -->						
							<div class="colPart">
								<select name="tradeType">
									<option value="">请选择</option>
									<option value="1">保税直供</option>
									<!-- <option value="2">国内发货</option> -->
									<option value="3">海外直邮</option>
									<!-- <option value="4">海外交货</option> -->
								</select>
							</div> 						
						</div>
						<!-- <div class="col-lg-31 clearfix">
							<label class="control-label labelPart">商品品牌：</label>
							<div class="colPart">
								<input type="text" class="input-sm form-control" id="brandname" placeholder="商品品牌">
							</div>	
						</div>	 -->
						<div class="col-lg-31 clearfix">
							<label class="control-label labelPart">商品货号：</label>
							<div class="colPart">
								<input type="text" class="input-sm form-control" id="code" placeholder="商品货号">
							</div>	
						</div>
						<div class="col-lg-31 clearfix">
							<label class="control-label labelPart">商品条形码：</label>
							<div class="colPart">
								<input type="text" class="input-sm form-control" id="barCode" placeholder="商品条形码">
							</div>	
						</div>
						<div class="col-lg-52 time clearfix">
							<label class="control-label labelPart">创建时间：</label>
							<div class="input-daterange input-group start ">
								<input type="text" class="input input-sm form-control" id="date-start" placeholder="起始时间" readonly="readonly" /> 
								<span class="input-group-addon">至</span> 
								<input type="text" class="input input-sm form-control" id="date-end" placeholder="结束时间" readonly="readonly" />
							</div>
						</div>
					</div>
					<!-- 查询结束 -->
					<ul class="clearfix listwork">
						<li data-target=".modal-addNews" data-toggle="modal" class="add clearfix"><i></i>增加</li>
						<li class="del delete-batch clearfix" id="deleteMany"><i></i>删除</li>
					</ul>
					<div class="table-responsive">
						<table class="table table-bordered check left">
							<thead>
								<tr>
									<th> 
										<div class="checkbox">
									    	<label><input type="checkbox" class="all" /></label>
									    </div>
									</th>
									<th>序号</th>
									<th>商品货号</th> 
									<th>条形码</th>
									<th>商品名称</th>
								    <th>贸易类型</th>
								    <th>分类</th>  
								    <th>商品品牌 </th>
								    <th>创建时间</th>
								    <th>上架状态</th>
								    <th>审核状态</th>
									<th>操作</th>
								</tr>
							</thead>
		
							<tbody id="dataBody">
								 
							</tbody>
						</table>
						
						<table class="table2excel table table-bordered hide">
						</table>
					</div>
				</form>
			</div>
		</div>
		<div class="clearfix pageBottom">	
			<div class="record-wrapper page" role="status" aria-live="polite">
				当前<span class="pageNo"> </span>/<span class="totalPages"> </span>页，每页
				<label class="inline">
					<select name="dataTable_length" 
						class="form-control input-sm setTableLength" aria-controls="dataTable">
						<option selected="selected" value="10">10</option>
						<option value="20">20</option>
						<option value="50">50</option>
						<option value="100">100</option>
						<option value="200">200</option>
						<option value="300">300</option>
						<option value="400">400</option>
						<option value="500">500</option>
						<option value="1000">1000</option>
				</select> 
				</label>&nbsp;条记录,共<span class="record-wrapper totalCount">0</span>条记录
			</div>
			<nav>
			<!-- 这里显示分页 -->
				<div id="Pagination" class="pagination"></div>
			</nav>
		</div>
			
	</div>
</div>

	
<!-- 添加s -->
<div class="modal fade modal-addNews" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">  <%-- action="<%=path%>/product/addproduct" enctype="multipart/form-data" method="post" --%>
			<form class="form-horizontal"  id="addshopForm">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 id="myModalLabel">新增商品</h4>
				</div>
				<div class="modal-body">
					<div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-41 control-label"><span class="red">*</span>商品名称：</label>
							<div class="col-sm-127">
								<input type="text" name="productName" class="form-control input-sm" placeholder="商品名称">
							</div>
						</div>
					</div>	
					<div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-41 control-label">副标题：</label>
							<div class="col-sm-127">
								<input type="text" name="subtitle" class="form-control input-sm" placeholder="副标题">
							</div>
						</div>
					</div>	
					
					<div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-41 control-label"><span class="red">*</span>商品分类：</label>
							
							<div style="width:50%" class="input-group address-group">
								<div class="input-group-btn" role="group">
									<button style="width:100%" type="button" id="EditProMenu" class="btn btn-sm btn-default dropdown-toggle line" data-toggle="dropdown">
										<span class="option-name">选择分类</span> <span class="caret"></span>
									</button>
									<ul class="dropdown-menu" id="provinceQuery">
										  
									</ul>
								<input type="hidden" class="input-hidden input-sm" value="0" name="firstProductType"> 
								</div>
								<div class="input-group-btn" role="group">
									<button style="width:100%" type="button" id="EditCityMenu" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown">
										<span class="option-name">选择分类</span> <span class="caret"></span>
									</button>
									<ul class="dropdown-menu" id="cityQuery">
										 
									</ul>
									<input type="hidden" class="input-hidden input-sm" value="0" name="secondProductType"> 
								</div>
								<div class="input-group-btn" role="group">
									<button style="width:100%" type="button" id="EditDistMenu" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown">
										<span class="option-name">选择分类</span> <span class="caret"></span>
									</button>
									<ul class="dropdown-menu" id="countyQuery">
										 
									</ul>
									<input type="hidden" class="input-hidden input-sm" value="0" name="thirdroductType">  
								</div>  
								<input type="hidden" placeholder="" name="productType" >
								<input type="hidden" placeholder="" name="productTypeName" >
							</div>  
							
						</div> 
						
					</div>	
					
					<div class="form-group clearfix" id="productAttrDiv" >	 	
						<div class="col-lg-61">
							<label class="col-sm-41 control-label" id="attr_key"></label>
							<div class="col-sm-81">
								<select name="product_attr_sel" id="productAttr-select"> 
								
								</select>
							</div>
							<input type="hidden" name="productAttr" />
						</div> 
					</div>		 
							
					<div class="form-group clearfix">	 	
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>贸易类型：</label>
							<div class="col-sm-81">
								<select name="tradeType">
									<option value="">请选择</option>
									<option value="1">保税直供</option>
									<!-- <option value="2">国内发货</option> -->
									<option value="3">海外直邮</option>
									<!-- <option value="4">海外交货</option> -->
								</select> 
							</div>
						</div>	
						
							
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>条形码：</label>
							<div class="col-sm-81">
								<input type="text" name="barCode" class="form-control input-sm" placeholder="条形码">
							</div>
						</div>
						
					</div>
					<div class="form-group clearfix">	
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">市场价：</label>
							<div class="col-sm-81">
								<input type="text" name="marketPrice" class="form-control input-sm" placeholder="市场价，单位：元">
							</div>
						</div>			
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>保质期：</label>
							<div class="col-sm-81">
								<input type="text" name="shelfLife" class="form-control input-sm" placeholder="保质期，天">
							</div>
						</div>
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>包装类型：</label>
							<div class="col-sm-81">
								<select name="packType">  
										<option value="罐">罐</option>
										<option value="袋">袋</option>
										<option value="包">包</option>
										<option value="盒">盒</option>
										<option value="瓶">瓶</option>
										<option value="组">组</option>
										<option value="箱">箱</option>
										<option value="套餐">套餐</option>
										<option value="支">支</option>
										<option value="件">件</option>
										<option value="只">只</option>
										<option value="片">片</option>
										<option value="台">台</option>
										<option value="条">条</option>
										<option value="块">块</option>
										<option value="桶">桶</option>
										<option value="双">双</option>
										<option value="个">个</option> 
								</select>
							</div>
						</div>
					</div>
					
					<div class="form-group clearfix">	
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>商品品牌：</label>
							<div class="col-sm-81">
								<select name="brandId"> 
								
								</select>
							</div>
						</div>
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>原产地国家：</label>
							<div class="col-sm-81">
								<input type="text" name="makeCountry" class="form-control input-sm" placeholder="原产地国家">
							</div>
						</div>
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">商品标签：</label>
							<div class="col-sm-81">
								<input type="text" name="produceLabel" class="form-control input-sm" placeholder="商品标签">
							</div>
						</div>			
					</div>	
					<div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-41 control-label">温馨提示：</label>
							<div class="col-sm-127">
								<input type="text" name="warmPrompt" class="form-control input-sm" placeholder="温馨提示 ">
							</div>
						</div>
					</div>
					<div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-41 control-label">商品描述：</label>
							<div class="col-sm-127">
								<input type="text" name="content" class="form-control input-sm" placeholder="商品描述 ">
							</div>
						</div>
					</div>
					<div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-41 control-label"><span class="red">*</span>商品主图：</label>
							<div class="pic"> 
								<div id="main-img-show" style="float:left">
								
								</div>  
								 
							    <div class="uploadImage" style="float:left">
							        <input type="file" value="上传文件" class="main-file" id="file" accept="image/png, image/jpeg, image/gif, image/jpg" multiple/>
							    </div>
							    <div style="padding-top:70px;">
							    	&nbsp;&nbsp;&nbsp;<input type="button" id="upload-main-file" value="上传图片" />
							    </div>
							</div>
							<div id="mainImgPathInputDiv">
							
							</div>
							 <input type="hidden" name="mainImgPaths" />
						</div>
					</div>		
					<div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-41 control-label"><span class="red">*</span>商品详情页：</label> 
							<div class="pic"> 
								<div id="detail-img-show" style="float:left">
								
								</div>  
								 
							    <div class="uploadImage" style="float:left">
							        <input type="file" value="上传文件" class="detail-file" id="file" accept="image/png, image/jpeg, image/gif, image/jpg" multiple/>
							    </div>
							    <div style="padding-top:70px;">
							    	&nbsp;&nbsp;&nbsp;<input type="button" id="upload-detail-file" value="上传图片" />
							    </div>
							</div>
							<div id="detailImgPathInputDiv">
							
							</div> 
						</div>
					</div>	
					
				</div>
				<div class="modal-footer">
					<span  class="errorMsg red"></span>
					<!-- <button type="button" class="btn btn-primary" onclick="readAsDataURL()">预览图片</button> -->
					<!-- <button type="submit" class="btn btn-primary" id="btn_addshop">保存</button> -->
					<button type="button" class="btn btn-primary" id="btn_addshop">保存</button>
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				</div>	
			</form>
		</div>		
				
	</div>
			
</div>
<!-- 添加e -->

<<!-- 修改s -->
<div class="modal fade modal-editNews" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">   
			<form class="form-horizontal"  id="updateProductForm">
				<input type="hidden" name="id"  >
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 id="myModalLabel">修改商品</h4>
				</div>
				<div class="modal-body">
					<div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-41 control-label"><span class="red">*</span>商品名称：</label>
							<div class="col-sm-127">
								<input type="text" name="productName" class="form-control input-sm" placeholder="商品名称">
							</div>
						</div>
					</div>	
					<div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-41 control-label">副标题：</label>
							<div class="col-sm-127">
								<input type="text" name="subtitle" class="form-control input-sm" placeholder="副标题">
							</div>
						</div>
					</div>	
					
					<!-- <div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-41 control-label">商品分类：</label>
							
							<div style="width:50%" class="input-group address-group-update">
								<div class="input-group-btn" role="group">
									<button style="width:100%" type="button" id="EditProMenu" class="btn btn-sm btn-default dropdown-toggle line" data-toggle="dropdown">
										<span class="option-name">选择分类</span> <span class="caret"></span>
									</button>
									<ul class="dropdown-menu" id="provinceQueryUpdate">
										  
									</ul>
								<input type="hidden" class="input-hidden input-sm" value="0" name="firstProductType"> 
								</div>
								<div class="input-group-btn" role="group">
									<button style="width:100%" type="button" id="EditCityMenu" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown">
										<span class="option-name">选择分类</span> <span class="caret"></span>
									</button>
									<ul class="dropdown-menu" id="cityQueryUpdate">
										 
									</ul>
									<input type="hidden" class="input-hidden input-sm" value="0" name="secondProductType"> 
								</div>
								<div class="input-group-btn" role="group">
									<button style="width:100%" type="button" id="EditDistMenu" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown">
										<span class="option-name">选择分类</span> <span class="caret"></span>
									</button>
									<ul class="dropdown-menu" id="countyQueryUpdate">
										 
									</ul>
									<input type="hidden" class="input-hidden input-sm" value="0" name="thirdroductType">  
								</div>  
								<input type="hidden" placeholder="" name="productType" >
								<input type="hidden" placeholder="" name="productTypeName" >
							</div>  
							
						</div> 
						
					</div>	 
					
					<div class="form-group clearfix" id="productAttrDiv" >	 	
						<div class="col-lg-61">
							<label class="col-sm-41 control-label" id="attr_key"></label>
							<div class="col-sm-81">
								<select name="product_attr_sel" id="productAttr-select"> 
								
								</select>
							</div>
							<input type="hidden" name="productAttr" />
						</div> 
					</div>			
				-->
							
					<div class="form-group clearfix">	 	
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>贸易类型：</label>
							<div class="col-sm-81">
								<select name="tradeType">
									<option value="">请选择</option>
									<option value="1">保税直供</option>
									<!-- <option value="2">国内发货</option> -->
									<option value="3">海外直邮</option>
									<!-- <option value="4">海外交货</option> -->
								</select> 
							</div>
						</div>	
						
							
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>条形码：</label>
							<div class="col-sm-81">
								<input type="text" name="barCode" class="form-control input-sm" placeholder="条形码">
							</div>
						</div>
						
					</div>
					<div class="form-group clearfix">	
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">市场价：</label>
							<div class="col-sm-81">
								<input type="text" name="marketPrice" class="form-control input-sm" placeholder="市场价，单位：元">
							</div>
						</div>			
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>保质期：</label>
							<div class="col-sm-81">
								<input type="text" name="shelfLife" class="form-control input-sm" placeholder="保质期，天">
							</div>
						</div>
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>包装类型：</label>
							<div class="col-sm-81">
								<select name="packType">  
										<option value="罐">罐</option>
										<option value="袋">袋</option>
										<option value="包">包</option>
										<option value="盒">盒</option>
										<option value="瓶">瓶</option>
										<option value="组">组</option>
										<option value="箱">箱</option>
										<option value="套餐">套餐</option>
										<option value="支">支</option>
										<option value="件">件</option>
										<option value="只">只</option>
										<option value="片">片</option>
										<option value="台">台</option>
										<option value="条">条</option>
										<option value="块">块</option>
										<option value="桶">桶</option>
										<option value="双">双</option>
										<option value="个">个</option> 
								</select>
							</div>
						</div>
					</div>
					
					<div class="form-group clearfix">	
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>商品品牌：</label>
							<div class="col-sm-81">
								<select name="brandId"> 
								
								</select>
							</div>
						</div>
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>原产地国家：</label>
							<div class="col-sm-81">
								<input type="text" name="makeCountry" class="form-control input-sm" placeholder="原产地国家">
							</div>
						</div>
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">商品标签：</label>
							<div class="col-sm-81">
								<input type="text" name="produceLabel" class="form-control input-sm" placeholder="商品标签">
							</div>
						</div>			
					</div>	
					<div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-41 control-label">温馨提示：</label>
							<div class="col-sm-127">
								<input type="text" name="warmPrompt" class="form-control input-sm" placeholder="温馨提示 ">
							</div>
						</div>
					</div>
					<div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-41 control-label">商品描述：</label>
							<div class="col-sm-127">
								<input type="text" name="content" class="form-control input-sm" placeholder="商品描述 ">
							</div>
						</div>
					</div>
					<div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-41 control-label"><span class="red">*</span>商品主图：</label>
							<div class="pic"> 
								<div id="main-img-show-update" style="float:left">
								
								</div>  
								 
							    <!-- <div class="uploadImage" style="float:left">
							        <input type="file" value="上传文件" class="main-file" id="file" accept="image/png, image/jpeg, image/gif, image/jpg" multiple/>
							    </div> -->
							    <!-- <div style="padding-top:70px;">
							    	&nbsp;&nbsp;&nbsp;<input type="button" id="upload-main-file" value="上传图片" />
							    </div> -->
							</div>
							<div id="mainImgPathInputDiv">
							
							</div>
							 <input type="hidden" name="mainImgPaths" />
						</div>
					</div>		
					<div class="form-group clearfix">
						<div class="col-lg-161">
							<label class="col-sm-41 control-label"><span class="red">*</span>商品详情页：</label> 
							<div class="pic"> 
								<div id="detail-img-show-update" style="float:left">
								
								</div>  
								 
							   <!--  <div class="uploadImage" style="float:left">
							        <input type="file" value="上传文件" class="detail-file" id="file" accept="image/png, image/jpeg, image/gif, image/jpg" multiple/>
							    </div> -->
							    <!-- <div style="padding-top:70px;">
							    	&nbsp;&nbsp;&nbsp;<input type="button" id="upload-detail-file" value="上传图片" />
							    </div> -->
							</div>
							<div id="detailImgPathInputDiv">
							
							</div> 
						</div>
					</div>	
					
				</div>
				<div class="modal-footer">
					<span  class="errorMsg red"></span>
					<!-- <button type="button" class="btn btn-primary" onclick="readAsDataURL()">预览图片</button> -->
					<!-- <button type="submit" class="btn btn-primary" id="btn_addshop">保存</button> -->
					<button type="button" class="btn btn-primary" id="btn_updateshop">保存</button>
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				</div>	
			</form>
		</div>		
				
	</div>
			
</div>
<!-- 添加e -->


<!-- 商品审核s -->
<div class="modal fade modal-audit-product modal-detail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content"> 
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
				<h4 id="myModalLabel">商品审核</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" novalidate="novalidate" id="auditProductForm"> 
					<input type="hidden" name="id" />  
					<div class="form-group">
						<div class="col-sm-161">
							<label class="col-sm-41 control-label">商品名称：</label>
							<div class="colPart6 dropdown">	 
								<input type="text" readonly="readonly" class="form-control input-sm" name="productName"> 
							</div> 
						</div>
					</div>  
					
					<div class="form-group">
						<div class="col-sm-161">
							<label class="col-sm-41 control-label">审核备注：</label>
							<div class="colPart6 dropdown">	
								<input type="text"  style="height:40px" name="auditOpinion" class="input-sm form-control" placeholder="请输入审核备注">	 
							</div> 
						</div>
					</div> 
			</form> 
			</div>
			<div class="modal-footer"> 
				<span  class="errorMsg red"></span> 
				<button type="button" class="btn btn-success" id="btn_audit_pass">通过</button>
				<button type="button" class="btn btn-danger" id="btn_audit_notpass">不通过</button>
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>	 
		</div>	 
	</div>
			
</div>
<!-- 商品审核e -->

